<template>
    <div class="header">
        <div class="content-wrapper">
            <div class="avatar">
                <img width="64" height="64" :src="seller.avatar">
            </div>
            <div class="content">
                <div class="title">
                    <span class="brand bgImg"></span>
                    <span class="name">{{seller.name}}</span>
                </div>
                <div class="description">
                    {{seller.description}}/{{seller.deliveryTime}}分钟送达
                </div>
                <div v-if="seller.supports" class="supports">
                    <span class="icon" :class="classMap[seller.supports[0].type]"></span>
                    <span class="text">{{seller.supports[0].description}}</span>
                </div>
            </div>
        </div>
        <div class="notice-wrapper">

        </div>
    </div>
</template>

<script>
    export default{
        props:{
            seller:{
                type:Object
            }
        },
        created(){
            this.classMap = [
                'icon_decrease_1',
                'icon_discount_1',
                'icon_special_1',
                'icon_invoice_1',
                'icon_guarantee_1'
            ]
        }
    }
</script>

<style type="text/css">
    .header{
        color: #fff;
        background: #000;
    }
    .content-wrapper{
        padding: 24px 12px 18px 24px;
        font-size: 0;
    }
    .content-wrapper .avatar{
        display: inline-block;
        vertical-align: top;
    }
    .content-wrapper .avatar img{
        border-radius: 2px;
    }
    .content-wrapper .content{
        display: inline-block;
        margin-left: 16px;
    }
    .content-wrapper .content .title{
        margin:2px 0 8px 0;
    }
    .content-wrapper .content .title .brand{
        display: inline-block;
        vertical-align: top;
        width: 30px;
        height: 18px;
        background-size: 30px 18px;
        background-repeat: no-repeat;
    }
    .content-wrapper .content .title .name{
        margin-left: 6px;
        font-size: 16px;
        line-height: 18px;
        font-weight: bold;
    }
    .content-wrapper .content .description{
        margin-bottom: 10px;
        line-height: 12px;
        font-size: 12px;
    }
    .content-wrapper .content .supports{

    }
    .content-wrapper .content .supports .icon{
        display: inline-block;
        width: 12px;
        height: 12px;
        margin-right: 4px;
        background-size: 12px 12px;
        background-repeat: no-repeat;
    }
    .content-wrapper .content .supports .text{
        line-height: 12px;
        font-size: 10px;
    }

</style>